package test;

import java.io.IOException;

import uci.rt.ccr1c.engine.matrix.Mat;
import uci.rt.ccr1c.engine.matrix.MatUtils;

public class testFactorclass
{
	public static void main(String[] args) throws IOException, InterruptedException  
	{	
		double []xxD = {1,1,1,1,2,3,4,5};
		double []yyD = {1,1,1,2,4,6,8,10};
		double [][]ttD= {{1.5,2.5,3.5,4.5,5.5}};
//		for (int i=1;i <6;i++){
//			xxD[0][i-1]=i;
//			yyD[0][i-1]=i*2;
//			ttD[0][i-1]=i+0.5;
//		}
		Mat coo= new Mat( new double[][]{xxD,yyD}).transpose();
		Mat res = MatUtils.approx("pippo", coo, new Mat(ttD));
		res.print("pippo");
	}
}
